import Vue from 'vue'
import VueRouter from 'vue-router'

import User from '../views/User.vue'
import CentOS from '../views/CentOS.vue'
import Login from '../views/Login.vue'
import ChatRoom from '../views/ChatRoom.vue'
import ChatRoomLogin from '../views/ChatRoomLogin.vue'


Vue.use(VueRouter)


const router = new VueRouter({
  routes:[
      
      {path:"/User",component: User},
      {path:"/CentOS",component: CentOS},
      {path:"/Login",component:Login},
      {path:"/ChatRoom/:username",component:ChatRoom},
      {path:"/ChatRoomLogin",component:ChatRoomLogin}
      
     
  ]
});

export default router;

